import request from '@/util/axios'
import apiUrl from '../apiUrlConfig'

export const getWhitelistResource = (option) =>
    request({
        url: apiUrl.Url_auth_getAllowResourcePage,
        data: option,
        method: 'post'
    })

export const deleteWhitelistResource = (option) =>
    request({
        url: apiUrl.Url_auth_deleteallowresource,
        data: option,
        method: 'post'
    })

export const addWhitelistResource = (option) =>
    request({
        url: apiUrl.Url_auth_addallowresource,
        data: option,
        method: 'post'
    })

export const updateWhitelistResource = (option) =>
    request({
        url: apiUrl.Url_auth_updateallowresource,
        data: option,
        method: 'post'
    })

export const refreshWhite = (option) =>
    request({
        url: apiUrl.Url_auth_refreshgatewaydata,
        parmas: option,
        method: 'get'
    })
